/**
 * Created by Michael on 2017/2/13.
 */
(function (angular) {
    console.log(333);
    var app=angular.module('mainApp.subject',[])
    app.controller('subjectCtrl',['$scope','jsonService','$routeParams',
        function ($scope,jsonService,$routeParams) {
            $scope.test='goudan'
            var url='https://api.douban.com/v2/movie/subject/'+$routeParams.id
            var obj={
                'apikey':'00fa6c0654689a0202ef4412fd39ce06',
            }
            jsonService.getJson(url,obj, function (data) {

                $scope.subject=data;
                $scope.$apply()
            })

    }]);

})(angular)